package com.dandandog.framework.faces.scope;

import org.springframework.stereotype.Component;

import javax.faces.context.FacesContext;
import java.util.Map;

/**
 * @author JohnnyLiu
 */
@Component("flashScope")
public class FlashScope extends AbstractScope {
    @Override
    protected Map<String, Object> getSource() {
        return FacesContext.getCurrentInstance().getExternalContext().getFlash();
    }
}
